home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3lights.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  4.2 KB  |  157 lines

  1.  
  2. // JavaScript wrapper for r3lights.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_LIGHTSOURCE_H = 1;
  7. include("real/objects/r3level.js")
  8.  
  9.  
  10. var R3CLID_LIGHTSOURCE = 301;
  11.  
  12.  
  13.  
  14.  
  15.  
  16. R3LSM_RENDERSHADOWMAPS = 301000;
  17.  
  18. function mR3LSM_RENDERSHADOWMAPS() {
  19.   DoA(this.r3obj, 301000, 0, R3TID_INTEGER, 0);
  20. }
  21.  
  22.  
  23.  
  24.  
  25. R3LSA_Intensity = 301500;
  26. function SetR3LSA_Intensity(value) {
  27.   R3Set(this.r3obj, R3LSA_Intensity, value, R3TID_FLOAT, 0); 
  28. }
  29.  
  30. function GetR3LSA_Intensity() {
  31.   return R3Get(this.r3obj, R3LSA_Intensity, R3TID_FLOAT, 0); 
  32. }
  33.  
  34. R3LSA_MaterialSensitive = 301501;
  35. function SetR3LSA_MaterialSensitive(value) {
  36.   R3Set(this.r3obj, R3LSA_MaterialSensitive, value, R3TID_INTEGER, 0); 
  37. }
  38.  
  39. function GetR3LSA_MaterialSensitive() {
  40.   return R3Get(this.r3obj, R3LSA_MaterialSensitive, R3TID_INTEGER, 0); 
  41. }
  42.  
  43. R3LSA_Falloff = 301502;
  44. function SetR3LSA_Falloff(value) {
  45.   R3Set(this.r3obj, R3LSA_Falloff, value, R3TID_INTEGER, 0); 
  46. }
  47.  
  48. function GetR3LSA_Falloff() {
  49.   return R3Get(this.r3obj, R3LSA_Falloff, R3TID_INTEGER, 0); 
  50. }
  51.  
  52. R3LSA_CastShadow = 301503;
  53. function SetR3LSA_CastShadow(value) {
  54.   R3Set(this.r3obj, R3LSA_CastShadow, value, R3TID_INTEGER, 0); 
  55. }
  56.  
  57. function GetR3LSA_CastShadow() {
  58.   return R3Get(this.r3obj, R3LSA_CastShadow, R3TID_INTEGER, 0); 
  59. }
  60.  
  61. R3LSA_HotPoint = 301504;
  62. function GetR3LSA_HotPoint() {
  63.   return R3Get(this.r3obj, R3LSA_HotPoint, R3TID_FLOAT, 0); 
  64. }
  65.  
  66. R3LSA_FalloffRadius = 301505;
  67. function SetR3LSA_FalloffRadius(value) {
  68.   R3Set(this.r3obj, R3LSA_FalloffRadius, value, R3TID_FLOAT, 0); 
  69. }
  70.  
  71. function GetR3LSA_FalloffRadius() {
  72.   return R3Get(this.r3obj, R3LSA_FalloffRadius, R3TID_FLOAT, 0); 
  73. }
  74.  
  75. R3LSA_Material = 301506;
  76. function SetR3LSA_Material(value) {
  77.   R3Set(this.r3obj, R3LSA_Material, value, R3TID_STRING, 0); 
  78. }
  79.  
  80. function GetR3LSA_Material() {
  81.   return R3Get(this.r3obj, R3LSA_Material, R3TID_STRING, 0); 
  82. }
  83.  
  84. R3LSA_VolumeLighting = 301507;
  85. function SetR3LSA_VolumeLighting(value) {
  86.   R3Set(this.r3obj, R3LSA_VolumeLighting, value, R3TID_INTEGER, 0); 
  87. }
  88.  
  89. function GetR3LSA_VolumeLighting() {
  90.   return R3Get(this.r3obj, R3LSA_VolumeLighting, R3TID_INTEGER, 0); 
  91. }
  92.  
  93. R3LSA_MapResolution = 301508;
  94. function SetR3LSA_MapResolution(value) {
  95.   R3Set(this.r3obj, R3LSA_MapResolution, value, R3TID_INTEGER, 0); 
  96. }
  97.  
  98. function GetR3LSA_MapResolution() {
  99.   return R3Get(this.r3obj, R3LSA_MapResolution, R3TID_INTEGER, 0); 
  100. }
  101.  
  102. R3LSA_ShadowMapSupported = 301509;
  103. function GetR3LSA_ShadowMapSupported() {
  104.   return R3Get(this.r3obj, R3LSA_ShadowMapSupported, R3TID_INTEGER, 0); 
  105. }
  106.  
  107. R3LSA_DiffuseOnly = 301510;
  108. function SetR3LSA_DiffuseOnly(value) {
  109.   R3Set(this.r3obj, R3LSA_DiffuseOnly, value, R3TID_INTEGER, 0); 
  110. }
  111.  
  112. function GetR3LSA_DiffuseOnly() {
  113.   return R3Get(this.r3obj, R3LSA_DiffuseOnly, R3TID_INTEGER, 0); 
  114. }
  115.  
  116. var R3LFO_NONE = 0;
  117. var R3LFO_LOCAL = 1;
  118. var R3FLO_DISTANCE = 2;
  119. var R3FLO_DISTANCESQUARED = 3;
  120. var R3LSS_NONE = 0;
  121. var R3LSS_RAYTRACED = 1;
  122. var R3LSS_MAPPED = 2;
  123.  
  124.  
  125. function r3Lightsource () { 
  126.    this.base = r3God;
  127.    if(arguments.length) {
  128.       this.base(R3CLID_LIGHTSOURCE, arguments);
  129.    }
  130.    // Methods
  131.    this.RENDERSHADOWMAPS=mR3LSM_RENDERSHADOWMAPS;
  132.  
  133.    // Attributes
  134.    this.GetIntensity=GetR3LSA_Intensity;
  135.    this.SetIntensity=SetR3LSA_Intensity;
  136.    this.GetMaterialSensitive=GetR3LSA_MaterialSensitive;
  137.    this.SetMaterialSensitive=SetR3LSA_MaterialSensitive;
  138.    this.GetFalloff=GetR3LSA_Falloff;
  139.    this.SetFalloff=SetR3LSA_Falloff;
  140.    this.GetCastShadow=GetR3LSA_CastShadow;
  141.    this.SetCastShadow=SetR3LSA_CastShadow;
  142.    this.GetHotPoint=GetR3LSA_HotPoint;
  143.    this.GetFalloffRadius=GetR3LSA_FalloffRadius;
  144.    this.SetFalloffRadius=SetR3LSA_FalloffRadius;
  145.    this.GetMaterial=GetR3LSA_Material;
  146.    this.SetMaterial=SetR3LSA_Material;
  147.    this.GetVolumeLighting=GetR3LSA_VolumeLighting;
  148.    this.SetVolumeLighting=SetR3LSA_VolumeLighting;
  149.    this.GetMapResolution=GetR3LSA_MapResolution;
  150.    this.SetMapResolution=SetR3LSA_MapResolution;
  151.    this.GetShadowMapSupported=GetR3LSA_ShadowMapSupported;
  152.    this.GetDiffuseOnly=GetR3LSA_DiffuseOnly;
  153.    this.SetDiffuseOnly=SetR3LSA_DiffuseOnly;
  154. }
  155.  
  156. r3Lightsource.prototype=new r3Level;
  157. // r3lights.h_H